class Player(object):
    # 类属性
    numbers = 0

    # 构造函数
    def __init__(self, name, age, city):  # self 代表当前对象
        """
        构造函数文档注释
        """
        self.name = name  # 实例属性
        self.age = age
        self.city = city
        Player.numbers += 1


player = Player("张三", 18, "北京")
print(player.numbers)

player2 = Player("李四", 20, "上海")
print(player2.numbers)

